FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g2eb1fd8.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g2eb1fd8.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=2eb1fd8 OS_GIT_VERSION=4.10.0-202202160023.p0.g2eb1fd8.assembly.stream-2eb1fd8 SOURCE_DATE_EPOCH=1643303217 SOURCE_GIT_COMMIT=2eb1fd83439da37e4f54231d627c3120735b20ee SOURCE_GIT_TAG=2eb1fd83 SOURCE_GIT_URL=https://github.com/openshift/cluster-storage-operator 
WORKDIR /go/src/github.com/openshift/cluster-storage-operator
COPY . .
RUN make

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g2eb1fd8.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g2eb1fd8.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=2eb1fd8 OS_GIT_VERSION=4.10.0-202202160023.p0.g2eb1fd8.assembly.stream-2eb1fd8 SOURCE_DATE_EPOCH=1643303217 SOURCE_GIT_COMMIT=2eb1fd83439da37e4f54231d627c3120735b20ee SOURCE_GIT_TAG=2eb1fd83 SOURCE_GIT_URL=https://github.com/openshift/cluster-storage-operator 
COPY --from=builder /go/src/github.com/openshift/cluster-storage-operator/cluster-storage-operator /usr/bin/
COPY manifests /manifests
COPY vendor/github.com/openshift/api/operator/v1/0000_50_cluster_storage_operator_01_crd.yaml manifests/05_crd_operator.yaml
COPY vendor/github.com/openshift/api/operator/v1/0000_90_cluster_csi_driver_01_config.crd.yaml manifests/04_cluster_csi_driver_crd.yaml
ENTRYPOINT ["/usr/bin/cluster-storage-operator"]

LABEL \
        io.openshift.release.operator="true" \
        io.k8s.display-name="OpenShift Cluster Storage Operator" \
        io.k8s.description="The cluster-storage-operator installs and maintains the storage components of OCP cluster." \
        name="openshift/ose-cluster-storage-operator" \
        com.redhat.component="ose-cluster-storage-operator-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Storage" \
        release="202202160023.p0.g2eb1fd8.assembly.stream" \
        io.openshift.build.commit.id="2eb1fd83439da37e4f54231d627c3120735b20ee" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-storage-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-storage-operator/commit/2eb1fd83439da37e4f54231d627c3120735b20ee" \
        version="v4.10.0"

